package com.monitor.util;

import java.io.File;

public class FileUtil {
	public static final void deleteFile(File file) {
		if (file.exists()) {
			if (file.isDirectory()) {
				File[] subFiles = file.listFiles();
				if (subFiles != null && subFiles.length > 0) {
					for (File f : subFiles) {
						deleteFile(f);
					}
				}

			}
			file.delete();
		}
	}
}
